#include "server.h"

int threadPoolInit(threadPool_t* threadPool, int workerNum){
    tidArrInit(&threadPool->tidArr, workerNum);
    taskQueueInit(&threadPool->taskQueue);
    pthread_mutex_init(&threadPool->mutex, NULL);
    pthread_cond_init(&threadPool->cond, NULL);
    usrinfoInit(&threadPool->usrinfo);
    threadPool->exitFlag = 0;
    return 0;
}
